package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PrivateMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PrivateMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PrivateMessage entity);

    PrivateMessage selectByPrimaryKey(Long id);

    List<PrivateMessage> selectAll();

    List<PrivateMessage> selectContentBySendIdAndReceiveId( @Param("receiveId") Long receiveId,@Param("sendId") Long sendId);

    List<PrivateMessage> selectByUserWeiDu(@Param("receiveId") Long receiveId, @Param("sendId") Long sendId);

    void changeReceiveState(@Param("id") Long id);

    Integer selectPrivateNumberByUserId(Long id);

    void changePrivateTotal(@Param("sendId") Long sendId, @Param("loginId") Long loginId);

    List<PrivateMessage> selectlistPrivateUser(Long id);
}